package java_01_20201028;

public class java10283 {
	public static void main(String[] args) {
		int a=345;
		
		int b=a/100;
		System.out.println(b);
//		int c=45/10; 
		int c=a/10-b*10;
		System.out.println(c);
		int d=a%10;
		System.out.println(d);
		int e=b+c+d;
		System.out.println(e);
	
	}
}
